|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Functions | |
| void | main (void) |
| void | DMA_ISR (void) |
Variables | |
| uint16_t | DMA_DST |
| void DMA_ISR | ( | void | ) |
Definition at line 233 of file dma_ex4_singleTransferADC12.c.
| void main | ( | void | ) |
Definition at line 73 of file dma_ex4_singleTransferADC12.c.
References __no_operation(), DMA_DST, and GPIO_setOutputLowOnPin().
| uint16_t DMA_DST |
DMA - Single Transfer using ADC12 trigger by TIMER_A, on Channel 0
This software uses TBCCR1 as a sample and convert input into the A0 of ADC12. ADC12IFG is used to trigger a DMA transfer and DMA interrupt triggers when DMA transfer is done. TB1 is set as an output and P1.0 is toggled when DMA ISR is serviced. ACLK = REFO = 32kHz, MCLK = SMCLK = default DCO 1048576Hz
MSP430F552x
-----------------
/|\| XIN|-
| | | 32kHz
--|RST XOUT|-
| |
| P1.0|-> LED
| P5.7/TB1|-> TIMER_A_B1 output
| P6.0/A0|<- A0
| |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 71 of file dma_ex4_singleTransferADC12.c.
Referenced by main().